﻿using System.ServiceModel;
using VideoStore.Services.Dto;

namespace VideoStore.Services.Interface
{
    [ServiceContract(Namespace = "VideoStore.Services.OrderServiceQueued")]
    public interface IOrderServiceQueued
    {
        /// <summary>
        /// Updates the order status.
        /// </summary>
        /// <param name="modifiedOrderDto">The modified order dto.</param>
        [OperationContract(IsOneWay = true)]
        [TransactionFlow(TransactionFlowOption.Allowed)]
        void UpdateOrderStatus(OrderDto modifiedOrderDto);
    }
}